/*
 * Copyright (c) 2008-2021 浩瀚深度 All Rights Reserved.
 *
 * <p>FileName: DatabaseConfig.java</p>
 *
 * @author zz
 * @date 2024/2/6
 * @version 1.0
 * History:
 * v1.0.0 2024/2/6 Create
 */
package com.sqlweb.sqlweb.config;

/**
 * <p>Title: DatabaseConfig</p>
 * <p>Description: </p>
 *
 * @author zz
 */

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;
@Data
@Configuration
@ConfigurationProperties(prefix = "db-type")
public class DatabaseConfig {

    private List<DbType> dbType;

    @Data
    public static class DbType {
        private String name;
        private Integer type;
        private String driverClass;

    }
}
